package com.jumi.microservice.constant;

import com.jumi.microservice.common.exception.BusinessExceptionAssert;

/**
 * @author Administrator
 */

public enum UserAccountEnum implements BusinessExceptionAssert {
    /**
     * 用户账号异常处理
     */
    USER_HAS_EXISTED(500,"用户账号已经存在"),
    INSERT_ERROR(500,"插入用户数据失败"),
    USER_NOT_EXISTED(500,"用户不存在"),
    PASSWORD_ERROR(500,"密码错误"),
    PHONE_HAS_EXISTED(500,"手机号已经存在"),
    USER_STATUS_ERROR(500,"用户状态不正确，已禁用或注销"),
    USER_STATUS_ABLED(500,"存在启用状态账号,不能删除")
    ;
    private final Integer code;

    private final String message;

    UserAccountEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
